import request from '@/utils/request'
// 搜索(点位管理)
export const node = data => request.get('/api/vm-service/node/search', {
  params: {
    ...data
  }
})
// 删除
export const deletes = id => request.delete(`/api/vm-service/node/${id}`)

// 新建
export const add = data => request.post('/api/vm-service/node', data)
export const area = () => request.get('/api/vm-service/region/search/')
export const at = () => request.get('/api/vm-service/businessType')
export const partner = params => request.get('/api/user-service/partner/search', {
  params
})
// 查看详情
export const lop = (id) => request.get(`/api/vm-service/node/vmList/${id}`)
// 修改
export const revise = data => request.put(`/api/vm-service/node/${data.id}`, data)

// 搜索列表
export const search = data => request.get('/api/vm-service/region/search', {
  params: {
    ...data
  }
})
